<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

<h2>Role > Show</h2>
					<!-- h2>View Role</h2 -->
					<!-- h5>Role: <%= @role.name %></h5 -->

<%= start_form_tag ({:action => ''},{:class => 'appform'}) %>

	<fieldset>
	     
			<h3>View Role</h3>
	      			
			<label for="name"><b>Name</b>
				<%= @role.name %>
			</label>

			<label for="name"><b>Description</b>
				<%= @role.description %>
			</label>
			
			<label for="name"><b>Omnipotent</b>
				<%= @role.omnipotent %>
			</label>

			<label for="name"><b>System Role</b>
				<%= @role.system_role %>
			</label>
			
	        <div class="f-submit-wrap">  
	          <!-- %= link_if_authorized submit_tag('Edit Role'), {:action => 'edit', :id => @role}  % -->
              <!-- %= link_if_authorized submit_tag('List Roles'), {:action => 'list'}  % -->
              
              <%= link_if_authorized image_tag('/themes/odotclassic/images/btn_editrole.png', :alt =>'Edit'), {:action => 'edit', :id => @role}  %>
              <%= link_if_authorized image_tag('/themes/odotclassic/images/btn_listroles.png', :alt =>'List'), {:action => 'list'}  %>
            </div>
	</fieldset>

<%= end_form_tag %>

</div>



<div id="role_details" class="object_details">
 <!-- <p><b>Admin?</b> <%= @role.omnipotent? ? "Yes" : "No" %></p> -->

<!-- 
  <h2>Permissions</h2>
  <table id="role_permission_table">
    <thead><tr>
  <% @all_actions.each_key do |controller_name| %>
        <th><%= controller_name.capitalize %></th>
  <% end %>
    </tr></head>
    <tbody><tr>
  <% @all_actions.each_key do |controller_name| %>
      <td valign="top">
      <ul style="list-style-type: none; list-style-image:none; margin-left: 0px; padding-left: 0px; margin-top: 5px; text-align: top;">
  <% @all_actions[controller_name].each do |permission| %>
        <li><%= link_if_authorized(permission.action.capitalize, {:controller => "permission", :action => "show", :id => permission}, :show_text => true, :title => permission.description) %><br>
    <%= permission.description %></li>  
  <% end %>
      </ul></td>
  <% end %>
    </tr></tbody>
  </table> -->

  <!-- <h2>Users</h2>
  <ul id="role_user_list">
    <% @role.users.each do |user| %>
      <%= link_if_authorized user.fullname, {:controller => "user", :action => "show", :id => user.id}, {:show_text => true, :wrap_in => 'li', :title => user.login } %>
    <% end %>
  </ul> -->
  
  
  